home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 24
/
Aminet 24 (1998)(GTI - Schatztruhe)[!][Apr 1998].iso
/
Aminet
/
dev
/
e
/
AEPD25.lha
/
EPD25
/
LiesMich.info
< prev
Wrap
Text File
|
1995-05-28
|
1KB
|
41 lines
-> rbf.e - Serial receive buffer full interrupt handler example.
->
-> To receive characters, this example requires ASCII serial input at your
-> Amiga's current serial hardware baud rate (i.e., 9600 after reboot, else
-> last baud rate used).
-> E-Note: E does not (as of v3.1a) support Resources in the conventional way
MODULE 'other/ecode',
'other/misc',
'dos/dos',
'exec/execbase',
'exec/interrupts',
'exec/nodes',
'exec/memory',
'hardware/custom',
'hardware/intbits',
'resources/misc'
ENUM ERR_NONE, ERR_BITS, ERR_ECODE, ERR_PORT, ERR_SIG
RAISE ERR_SIG IF AllocSignal()=-1
CONST BUFFERSIZE=256, NAMESIZE=32
CONST ALLOCEDBUFFER=BUFFERSIZE+2
OBJECT rbfData
task
signal
bufferCount -> E-Note: C version disagrees with Assembly handler!
charBuffer[ALLOCEDBUFFER]:ARRAY
flagBuffer[ALLOCEDBUFFER]:ARRAY
name[NAMESIZE]:ARRAY
ENDOBJECT
-> E-Note: set-up "custom"
DEF custom=CUSTOMADDR:PTR TO custom
PROC main() HANDLE
-> E-Note: to help with cleaning up, currentuser has been replaced by
-> portuser and bitsuser, both initialised to non-zero
D